package com.bingxue.edu.common.enums;

import com.bingxue.edu.framework.enums.Dict;
import com.bingxue.edu.framework.enums.DictEnum;
import com.fasterxml.jackson.annotation.JsonValue;
import com.mybatisflex.annotation.EnumValue;
import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * 优惠券有效期类型
 * @author panbo
 * @since 2024/8/2
 */
@Getter
@AllArgsConstructor
@Dict("优惠券有效期类型")
public enum CouponValidTypeEnum implements DictEnum<String> {
    FIXED("FIXED", "起止时间范围内有效"),
    DAYS("DAYS", "领券起指定天数内有效");


    @EnumValue
    @JsonValue
    private final String value;
    private final String label;
}

